package com.blank.service.Impl;

import com.blank.dao.Impl.CheckLoginDaoImpl;
import com.blank.service.CheckLoginService;
import com.blank.dao.CheckLoginDao;
import com.blank.pojo.bo.User;

import java.sql.SQLException;

/**
 * @author BLANK
 * @date 2020/11/12
 */
public class CheckLoginServiceImpl implements CheckLoginService {
   private CheckLoginDao checkLoginDao =new CheckLoginDaoImpl();
    @Override
    public User checkLogin(String username, String password) throws SQLException {
        return checkLoginDao.checkLogin(username,password);
    }

    @Override
    public User checkSameUser(String username) throws SQLException {
        return checkLoginDao.checkSameUser(username);
    }
}
